<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript程序示例</title>
    <script src="./js/js12_example.js"></script>
</head>
<body>
    <h1>JavaScript程序示例</h1>
    <p>1.求和</p>
    <p>2.求质数</p>
    <script>
        let arr = getDataArray(10,100);
        printArray(arr);
        document.write(`数组求和：${sum(arr)}<br>`);

        let primeArr = prime(arr);
        document.write(`数组中的质数：`);
        printArray(primeArr);
    </script>
</body>
</html>